/*
 * @Author: Simon 1958058172@qq.com
 * @Date: 2025-08-04 15:03:24
 * @LastEditors: Simon 1958058172@qq.com
 * @LastEditTime: 2025-08-04 15:06:30
 * @FilePath: \java.1212\csdn\duotai\li03\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package csdn.duotai.li03;

public class Test {
    public static void main(String[] args) {
        Voice voice=new Voice();
        Animal dog=new Dog();
        voice.letItShout(dog);//输出汪汪叫
        Animal cat=new Cat();
        voice.letItShout(cat);//输出喵喵叫
    }
}
